Summary
A networkable list for use with the
SyncAttribute and
HostSyncAttribute. Only changes will be
networked instead of sending the whole list every time, so it's more efficient.
['br']['b']
public class MyComponent : Component
{
[Sync] public NetList<int> MyIntegerList { get; set; } = new();
['br']
public void AddNumber( int number )
{
if ( IsProxy ) return;
MyIntegerList.Add( number );
}
}
Constructors
Fields
| OnChanged |
Get notified when the list has changed. |
Properties
| Count |
<inheritdoc cref="P:System.Collections.Generic.List`1.Count" /> |
| Item |
|
Methods